/* --- ABOUT SECTION LAYOUT --- */
.about-section {
    position: relative;
    background: #f8fbff; /* Light Blue Background */
    /* FIX: Reduced padding to close the gap */
    padding: 0;
    z-index: 1;
}

/* The Wave SVG */
.wave-divider {
    position: absolute;
    /* FIX: Pull the wave UP into the hero section to blend them */
    top: -100px; 
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    /* Keep height to ensure smooth transition */
    height: 101px; 
}

/* The "Shape Fill" class inside the SVG */
.wave-divider .shape-fill, 
.wave-divider path {
    fill: #ffffff; /* White to match the Hero section above */
}

/* Keep the rest of the CSS below exactly as it was... */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* --- DUALITY CARDS (Brain/Fool) --- */
.dual-brain-fools {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin-top: 50px;
    margin-bottom: 80px;
}

.duality-card {
    background: white;
    border: 2px solid #eee;
    padding: 30px;
    flex: 1;
    text-align: center;
    transition: transform 0.3s;
    border-radius: 20px;
    position: relative;
}

.duality-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
    z-index: 10;
}

.brain-side { 
    border-top-right-radius: 0; 
    border-bottom-right-radius: 0; 
    border-right: none; 
}
.fool-side { 
    border-top-left-radius: 0; 
    border-bottom-left-radius: 0; 
    border-left: none; 
}

.connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    align-self: center;
    z-index: 2;
}
.connector span {
    background: #E91E63;
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.5rem;
}

.photo-container {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1; /* square */
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 20px;
    background-color: #f0f0f0;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.duality-card:hover .photo-container img {
    transform: scale(1.1);
}

.icon-wrapper { font-size: 2.5rem; margin-bottom: 10px; }
.duality-text { line-height: 1.6; color: #555; }

/* --- MISSION SECTION --- */
.mission-container { text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; color: #6B2C91; text-align: center; }
.section-title::after { content: ''; display: block; width: 100%; height: 6px; background: linear-gradient(90deg, #6B2C91, #ED64A6); border-radius: 4px; margin: 8px auto 0; }
.mission-intro { max-width: 600px; margin: 0 auto 50px; color: #666; }

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-ticket {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.mission-ticket:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.ticket-photo {
    width: 100%;
    height: 180px;
    background-color: #eee;
    overflow: hidden;
}

.ticket-photo img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mission-ticket:hover .ticket-photo img {
    transform: scale(1.05);
}

.ticket-content { padding: 25px; }
.ticket-content h4 { color: #2c3e50; margin-bottom: 10px; font-size: 1.2rem; }
.ticket-content p { font-size: 0.95rem; color: #666; line-height: 1.5; }

.scroll-reveal {
    opacity: var(--reveal, 0);
    transform: translateY(calc((1 - var(--reveal, 0)) * 40px));
    transition: opacity 0.1s linear, transform 0.1s linear;
}

.scroll-reveal.slide-in-left {
    transform: translateX(calc((1 - var(--reveal, 0)) * -80px)) translateY(calc((1 - var(--reveal, 0)) * 10px));
    opacity: var(--reveal, 0);
}

.scroll-reveal.slide-in-right {
    transform: translateX(calc((1 - var(--reveal, 0)) * 80px)) translateY(calc((1 - var(--reveal, 0)) * 10px));
    opacity: var(--reveal, 0);
}

.scroll-reveal.active {
    opacity: var(--reveal, 0);
    transform: translateY(calc((1 - var(--reveal, 0)) * 40px));
}


@media (max-width: 768px) {
    .dual-brain-fools { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 20px; 
    }
    
    .duality-card { 
        border-radius: 20px !important; 
        border: 2px solid #eee !important; 
    }
    /* Show connector on mobile (smaller and inline between stacked cards) */
    .connector { display: flex !important; justify-content: center; align-items: center; font-size: 1.6rem; width: 48px; height: 48px; margin: 0 auto; }

    /* Make the plus more visible on mobile with animated blob-style background */
    .connector.plus { 
        display: flex !important;
        background: linear-gradient(180deg, rgba(66,153,225,0.12), rgba(237,100,166,0.06));
        color: #4299E1;
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(66,153,225,0.15);
        animation: blob-pulse 4s ease-in-out infinite;
        font-weight: 700;
    }

    @keyframes blob-pulse {
        0%, 100% { transform: scale(1) rotate(0deg); }
        50% { transform: scale(1.08) rotate(8deg); }
    }


    /* Ensure mission and history titles are centered on mobile */
    .mission-container .section-title,
    .history-container .section-title {
        display: block !important;
        margin: 0 auto 10px auto !important;
        left: auto !important;
        transform: none !important;
        text-align: center !important;
        font-size: 1.8rem;
    }
}