/* Vision Page Specific Styles */

.vision-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 60px 40px;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInContainer 1s ease-out 0.1s forwards;
    box-sizing: border-box;
}

@keyframes fadeInContainer {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vision-section {
    margin-bottom: 50px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInSection 0.8s ease-out forwards;
    flex-shrink: 0;
    /* Remove conflicting transition that interferes with animations */
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vision-header {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2rem;
    font-weight: 400;
    color: #333333;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.vision-header::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333333;
    transition: width 0.4s ease;
}

.vision-header:hover::after {
    width: 100%;
}

.vision-section:nth-child(1) {
    animation-delay: 0.8s;
}

.vision-section:nth-child(2) {
    animation-delay: 1.2s;
}

.vision-section:nth-child(3) {
    animation-delay: 1.6s;
}

.vision-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
    color: #555555;
    max-width: 700px;
    margin: 0 auto;
    transition: color 0.3s ease;
    position: relative;
}

.vision-text:hover {
    color: #333333;
}

/* Simplified hover effects that don't interfere with animations */
.vision-section {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.vision-section:hover {
    transform: translateY(-2px); /* Subtle lift instead of scale */
}

/* Remove the complex hover system that was causing conflicts */
.vision-container:hover .vision-section:not(:hover) {
    opacity: 0.8;
}

.vision-container:hover .vision-section:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vision-container {
        padding: 50px 30px;
        height: 100vh;
    }
    
    .vision-header {
        font-size: 1.7rem;
    }
    
    .vision-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .vision-section {
        margin-bottom: 40px;
    }
    
    /* Disable hover effects on mobile to prevent issues */
    .vision-section:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .vision-container {
        padding: 40px 20px;
    }
    
    .vision-header {
        font-size: 1.4rem;
    }
    
    .vision-text {
        font-size: 0.9rem;
    }
    
    .vision-section {
        margin-bottom: 35px;
    }
}

/* Ensure main content doesn't interfere with sidebar */
.main-content {
    overflow: hidden;
}

/* Disable pointer events during animations */
.vision-container.animating {
    pointer-events: none;
}

.vision-container.animating * {
    pointer-events: none;
}

/* Word animation effect */
.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordFadeIn 0.6s ease-out forwards;
}

@keyframes wordFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}