/* About Page Specific Styles */

.about-main {
    padding-top: 100px;
    position: relative;
    min-height: 100vh;
    padding-bottom: 100px;
}

.page-title {
    text-align: center;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 60px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* River Container */
.river-container {
    position: relative;
    width: 100%;
    height: 2200px;
    padding: 0 5%;
}

/* Flowing River Path */
.river-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.river-water {
    fill: none;
    stroke: rgba(135, 206, 235, 0.6);
    stroke-width: 60;
    filter: url(#glow);
    animation: flow 20s ease-in-out infinite;
    stroke-linecap: round;
}

.river-flow {
    fill: none;
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 25;
    animation: flow-inner 15s ease-in-out infinite reverse;
    stroke-linecap: round;
}

@keyframes flow {
    0%, 100% {
        stroke-dasharray: 100 200 150 100;
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
    50% {
        stroke-dasharray: 200 100 100 200;
        stroke-dashoffset: -200;
        opacity: 0.8;
    }
}

@keyframes flow-inner {
    0%, 100% {
        stroke-dasharray: 50 150 80 120;
        stroke-dashoffset: 0;
        opacity: 0.4;
    }
    50% {
        stroke-dasharray: 120 80 150 50;
        stroke-dashoffset: -150;
        opacity: 0.6;
    }
}

/* Text Sections */
.text-section {
    position: absolute;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.text-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: gentle-float 8s ease-in-out infinite;
}

.text-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.text-box h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #e6f3ff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.text-box p {
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.9;
    text-align: justify;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    33% {
        transform: translateY(-8px);
    }
    66% {
        transform: translateY(4px);
    }
}

/* Stagger the floating animations */
.text-section:nth-child(3) .text-box {
    animation-delay: -2s;
}

.text-section:nth-child(4) .text-box {
    animation-delay: -4s;
}

.text-section:nth-child(5) .text-box {
    animation-delay: -6s;
}

.text-section:nth-child(6) .text-box {
    animation-delay: -8s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .text-box {
        padding: 30px;
        max-width: 350px;
    }
    
    .text-box h2 {
        font-size: 1.5rem;
    }
    
    .text-box p {
        font-size: 0.9rem;
    }
    
    .river-water {
        stroke-width: 40;
    }
    
    .river-flow {
        stroke-width: 20;
    }
}