/* Systems at Work - Manifesto Section */
.about-section {
    background: var(--bg-3);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .about-section {
        padding: 0.375rem 0;
    }
}

/* Asymmetric Grid: Animation Left, Text Right */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Desktop: 40% visual / 60% text */
@media (min-width: 769px) {
    .about-grid {
        grid-template-columns: 40% 60%;
        gap: 4rem;
    }
}

/* Mobile: Stack animation above text */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* Left: Infinity Visual */
.about-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .about-visual {
        height: 220px;
        margin-bottom: -1.5rem;
    }
}

#infinityCanvas {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

#infinityCanvas.visible {
    opacity: 1;
}

/* Right: Text Manifesto */
.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Section Title - White Text */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--txt-1);
    text-align: left;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .section-title {
        text-align: center;
        font-size: 1.6rem;
        margin-bottom: 0.375rem;
    }
}

.manifesto-line {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--txt-2);
    text-align: left;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (max-width: 768px) {
    .manifesto-line {
        text-align: center;
    }
}

@media (min-width: 769px) {
    .manifesto-line {
        font-size: 1.4rem;
    }
}

/* Staggered fade-in */
.manifesto-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto-line:nth-child(1).visible {
    transition-delay: 0ms;
}

.manifesto-line:nth-child(2).visible {
    transition-delay: 100ms;
}

.manifesto-line:nth-child(3).visible {
    transition-delay: 200ms;
    opacity: 0.9;
}

.manifesto-line:nth-child(4).visible {
    transition-delay: 300ms;
}

/* Final statement - bold and large */
.about-text .final {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--txt-1);
    margin: 1rem 0 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 400ms, transform 0.6s ease-out 400ms;
}

@media (max-width: 768px) {
    .about-text .final {
        text-align: center;
    }
}

@media (min-width: 769px) {
    .about-text .final {
        font-size: 2rem;
    }
}

.about-text .final.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Energy Line - Animated gradient pulse */
.energy-line {
    height: 2px;
    width: 200px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #3b82f6 20%, 
        #8b5cf6 50%, 
        #3b82f6 80%, 
        transparent 100%);
    background-size: 200% 100%;
    opacity: 0;
    animation: energyFlow 3s ease-in-out infinite;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .energy-line {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }
}

.energy-line.visible {
    opacity: 1;
    animation: energyFlow 3s ease-in-out infinite;
}

@keyframes energyFlow {
    0%, 100% {
        background-position: 0% 0%;
        transform: translateX(-10px);
    }
    50% {
        background-position: 100% 0%;
        transform: translateX(10px);
    }
}

/* Parallax effect for animation */
.about-visual {
    will-change: transform;
}
