
.chapter-container {
    min-height: 100vh;
    padding-block: 6rem;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.snap-parent {
    scroll-snap-type: y proximity;
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.snap-parent::-webkit-scrollbar {
    display: none;
}
.abstract-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.4;
}
.circuit-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(56, 189, 248, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
}
.data-stream {
    background: linear-gradient(90deg, transparent 0%, rgba(36, 99, 235, 0.05) 50%, transparent 100%);
    background-size: 200% 100%;
}
.glow-orb {
    filter: blur(120px);
    border-radius: 50%;
    position: absolute;
}
.text-reveal {
    background: linear-gradient(180deg, #FFFFFF 0%, #38BDF8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.narrative-line {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #38BDF8, transparent);
    transform-origin: top;
}

/* UI/UX Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.line-grow {
    transform: scaleY(0);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.line-grow.active {
    transform: scaleY(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
.animate-float {
    animation: float 8s ease-in-out infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    100% { transform: scale(1.5); opacity: 0; box-shadow: 0 0 30px 15px rgba(56, 189, 248, 0); }
}
.animate-pulse-ring::before {
    content: '';
    position: absolute;
    inset: -2px; /* Starts just outside the image border */
    border: 2px solid rgba(56, 189, 248, 0.8);
    border-radius: 50%;
    animation: pulse-ring 8s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

/* Aurora Background Animation */
.aurora-bg {
    position: absolute;
    inset: -50%;
    z-index: 0;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    animation: aurora-move 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.aurora-1 {
    top: 10%;
    left: 10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 60%);
    animation-delay: 0s;
}
.aurora-2 {
    bottom: 0%;
    right: 0%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 60%);
    animation-delay: -5s;
}
.aurora-3 {
    top: 40%;
    left: 40%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
    animation-delay: -10s;
}

@keyframes aurora-move {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(15%, -15%) scale(1.1);
    }
    66% {
        transform: translate(-10%, 10%) scale(0.9);
    }
    100% {
        transform: translate(5%, -5%) scale(1.2);
    }
}
