/* enhanced-styles.css - Modern, subtle animations for content sections only */

/* ========== SMOOTH SCROLL ANIMATIONS ========== */
.content-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.content-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for section children */
.content-section.revealed .section-header {
    animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.content-section.revealed .card-animate {
    animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== REFINED CARD ANIMATIONS ========== */
.card-animate {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, box-shadow, border-color;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Vision & Mission Cards */
.vision-card,
.mission-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(79, 143, 132, 0.15);
    transition: transform 0.4s ease, 
                box-shadow 0.4s ease, 
                border-color 0.3s ease;
}

.vision-card::before,
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 143, 132, 0.05), rgba(79, 143, 132, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.vision-card:hover::before,
.mission-card:hover::before {
    opacity: 1;
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(79, 143, 132, 0.15), 
                0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: rgba(79, 143, 132, 0.3);
}

/* Card Icon Enhancement */
.vision-card .card-icon,
.mission-card .card-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.vision-card:hover .card-icon,
.mission-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 25px rgba(79, 143, 132, 0.25);
}

/* ========== FOCUS CARDS REFINEMENT ========== */
.focus-card {
    position: relative;
    border: 1px solid rgba(79, 143, 132, 0.1);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.focus-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(79, 143, 132, 0.18), 
                0 10px 20px rgba(0, 0, 0, 0.08);
}

.focus-card .card-header {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.focus-card:hover .card-header {
    background: linear-gradient(135deg, #4F8F84, #5DA89B);
}

.focus-card .card-icon {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.focus-card:hover .card-icon {
    transform: scale(1.2) rotateY(180deg);
    background: linear-gradient(135deg, #F26A8D, #FF8AA3);
    box-shadow: 0 8px 25px rgba(242, 106, 141, 0.35);
}

.focus-card .card-content li {
    transition: all 0.3s ease;
    padding-left: 30px;
}

.focus-card:hover .card-content li {
    transform: translateX(5px);
}

.focus-card .card-content li:before {
    transition: all 0.3s ease;
    left: 5px;
}

.focus-card:hover .card-content li:before {
    color: #F26A8D;
    transform: scale(1.3);
}

/* ========== MEMBERSHIP CARDS ENHANCEMENT ========== */
.membership-card {
    position: relative;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
}

.membership-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}

.membership-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.membership-card:hover::after {
    opacity: 1;
}

/* Card Badge Animation */
.card-badge {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: right center;
}

.membership-card:hover .card-badge {
    transform: scale(1.1) translateY(-5px);
    background: linear-gradient(135deg, #F26A8D, #FF8AA3);
    box-shadow: 0 5px 15px rgba(242, 106, 141, 0.4);
}

/* Price Animation */
.price {
    position: relative;
    transition: all 0.4s ease;
}

.membership-card:hover .price {
    transform: scale(1.1);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* List Item Animation */
.card-content li {
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.card-content li:hover {
    transform: translateX(8px);
    border-bottom-color: rgba(79, 143, 132, 0.2);
    background: linear-gradient(90deg, rgba(79, 143, 132, 0.05), transparent);
}

.card-content li i {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-content li:hover i {
    transform: scale(1.3) rotate(15deg);
    color: #F26A8D;
    filter: drop-shadow(0 2px 8px rgba(242, 106, 141, 0.3));
}

/* ========== PARTNER LOGOS ENHANCEMENT ========== */
.partner-logo {
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(79, 143, 132, 0.1);
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 143, 132, 0.1), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.partner-logo:hover::before {
    left: 100%;
}

.partner-logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 143, 132, 0.18), 
                0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 143, 132, 0.3);
}

.partner-logo img {
    transition: all 0.4s ease;
    filter: grayscale(0.3) brightness(1.05);
}

.partner-logo:hover img {
    filter: grayscale(0) brightness(1.1);
    transform: scale(1.05);
}

/* ========== CONTACT SECTION REFINEMENT ========== */
.contact-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(79, 143, 132, 0.15);
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 143, 132, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(79, 143, 132, 0.15), 
                0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 143, 132, 0.3);
}

.contact-card:hover::before {
    opacity: 1;
}

/* Contact Icon Enhancement */
.contact-icon {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotate(10deg);
    background: linear-gradient(135deg, #4F8F84, #F26A8D);
    box-shadow: 0 15px 30px rgba(79, 143, 132, 0.4);
}

.contact-card:hover .contact-icon::before {
    opacity: 1;
}

.contact-card:hover .contact-icon i {
    animation: subtleBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes subtleBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

/* Contact Form Refinement */
.contact-form {
    position: relative;
    border: 1px solid rgba(79, 143, 132, 0.15);
    transition: all 0.4s ease;
}

.contact-form:hover {
    box-shadow: 0 20px 40px rgba(79, 143, 132, 0.12), 
                0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(79, 143, 132, 0.25);
}

/* Enhanced Form Inputs */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(248, 250, 249, 0.8);
    border: 2px solid rgba(79, 143, 132, 0.1);
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Montserrat', sans-serif;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.04);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4F8F84;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 143, 132, 0.15), 
                0 5px 15px rgba(79, 143, 132, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(79, 143, 132, 0.3);
    background: rgba(248, 250, 249, 1);
}

/* Floating Label Effect */
.form-group {
    position: relative;
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label {
    transform: translateY(-30px) scale(0.9);
    color: #4F8F84;
}

/* Submit Button Enhancement */
.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transform-origin: center;
}

.submit-btn::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 0.7s ease;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(79, 143, 132, 0.3), 
                0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn i {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.submit-btn:hover i {
    transform: translateX(5px) rotate(15deg);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

/* ========== EVENTS GALLERY ENHANCEMENT ========== */
.event-photo {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backface-visibility: hidden;
}

.event-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(79, 143, 132, 0.1), rgba(242, 106, 141, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.event-photo:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 
                0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-photo:hover::before {
    opacity: 1;
}

.event-photo img {
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.event-photo:hover img {
    transform: scale(1.08);
}

.event-photo-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
    backdrop-filter: blur(2px);
}

/* View Gallery Button Enhancement */
.view-gallery-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.view-gallery-btn::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 0.7s ease;
}

.view-gallery-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 143, 132, 0.35), 
                0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.view-gallery-btn:hover::before {
    left: 100%;
}

.view-gallery-btn i {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.view-gallery-btn:hover i {
    transform: translateX(5px) scale(1.2);
}

/* ========== SECTION DIVIDER ANIMATION ========== */
.section-divider {
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.8s ease;
}

.content-section.revealed .section-divider::after {
    left: 100%;
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
@media (prefers-reduced-motion: reduce) {
    .content-section,
    .card-animate,
    .contact-card,
    .membership-card,
    .focus-card,
    .vision-card,
    .mission-card,
    .partner-logo,
    .event-photo,
    .submit-btn,
    .view-gallery-btn {
        transition: none !important;
        animation: none !important;
    }
    
    .content-section {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .content-section.revealed .section-header,
    .content-section.revealed .card-animate {
        animation: none !important;
    }
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .content-section {
        transform: translateY(20px);
    }
    
    .card-animate:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    }
    
    .submit-btn:hover,
    .view-gallery-btn:hover {
        transform: translateY(-3px) scale(1.01) !important;
    }
}

@media (max-width: 480px) {
    .content-section {
        transform: translateY(15px);
    }
}