/* Page Transition and Animations */
.page-transition {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.page-transition.page-loaded {
    opacity: 1;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for children */
.animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: calc(var(--stagger-delay, 0.1s) * var(--i, 0));
}

.page-loaded .animate-stagger > * {
    opacity: 1;
    transform: translateY(0);
}

/* About Page Styles */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.about-text {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 0 auto 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    width: 90%;
    max-width: 1000px;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.about-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
        width: 100%;
    }
}

.page-hero {
    background-color: #f8f9fa;
    padding: 20px 0 20px;
    text-align: center;
    margin: 20px 0 0;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* About Section */
.about-section, .vm-section, .tech-section {
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2, .vm-section h2, .section-header h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.about-text h2::after, .vm-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #3b82f6;
}

/* Vision & Mission */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vision, .mission {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.vm-icon {
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #0ea5e9;
}

/* Technology Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tech-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.tech-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0ea5e9;
}

/* Language Switcher */
.language-switcher {
    /* display: flex; */
    display: none;
    align-items: center;
    margin-right: 15px;
}

.language-option {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-option:hover {
    color: #3b82f6;
    background-color: #f1f5f9;
}

.language-option.active {
    color: #3b82f6;
    font-weight: 600;
}

.language-separator {
    margin: 0 5px;
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content, .vm-grid {
        grid-template-columns: 1fr;
    }
    
    .about-video {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 40px;
    }
    
    .about-text h2, .vm-section h2, .section-header h2 {
        font-size: 1.8rem;
    }
    
    .vision, .mission {
        padding: 25px 20px;
    }
}
