/* Advanced styling and animations */

/* Section titles with enhanced styling */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Enhanced hero statistics */
.hero-stats {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    position: relative;
    padding: 1rem;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.about-card:nth-child(2) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.program-card:nth-child(even) {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Enhanced composition stats */
.composition-stats {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.03), rgba(74, 124, 89, 0.03));
    border-radius: 15px;
    border: 1px solid rgba(26, 71, 42, 0.08);
}

.comp-stat {
    position: relative;
    transition: all 0.3s ease;
}

.comp-stat:hover {
    transform: scale(1.05);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(26, 71, 42, 0.15);
}

/* Mission list with better styling */
.mission-list li {
    position: relative;
    background: rgba(26, 71, 42, 0.03);
    margin: 0.5rem 0;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.mission-list li:hover {
    background: rgba(26, 71, 42, 0.08);
    transform: translateX(5px);
}

.mission-list li::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Enhanced extension features */
.extension-item {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.extension-item:hover {
    border-color: rgba(26, 71, 42, 0.2);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(26, 71, 42, 0.15);
}

.extension-item i {
    transition: all 0.3s ease;
}

.extension-item:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Partner items with advanced hover effects */
.partner-item {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 71, 42, 0.02), rgba(74, 124, 89, 0.02));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-item:hover::before {
    opacity: 1;
}

.partner-item:hover {
    border-color: rgba(26, 71, 42, 0.1);
    transform: translateY(-8px) scale(1.02);
}

/* Enhanced navigation */
.navbar {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(26, 71, 42, 0.1);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Enhanced social links */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

/* Form enhancements */
.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 71, 42, 0.15);
}

/* Youth stat enhancement */
.youth-stat {
    position: relative;
    overflow: hidden;
}

.youth-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 1s ease;
}

.youth-stat:hover::before {
    left: 100%;
}

/* Scroll reveal animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: slideInUp 0.8s ease forwards;
}

.animate-in:nth-child(odd) {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-in:nth-child(even) {
    animation: slideInRight 0.8s ease forwards;
}

/* Enhanced loading screen */
.loading-screen {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.loading-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.loading-spinner {
    border-width: 3px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
}

/* Enhanced footer */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .hero-stats {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .about-card,
    .program-card,
    .contact-card {
        margin-bottom: 2rem;
    }
    
    .stat-item::before {
        display: none;
    }
    
    .about-card:nth-child(2),
    .program-card:nth-child(even) {
        animation: none;
    }
}
