@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-element.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

:root {
    --color-primary-green: #67a885; 
    --color-secondary-pink: #c960a5; 
    --color-accent-blue: #609cb6; 
    --color-light-bg: #f5f5f5;
    --color-dark-text: #444;
    --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    --card-default-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-page-wrapper {
    min-height: 100vh;
    padding-top: 100px; 
    padding-bottom: 80px;
    position: relative;
    
    background-image: url('contacts_bg.png');
    background-size: cover; 
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #f7f7f7; 
}

.contact-page-wrapper::before {
    content: '';
    position: absolute;
    top: 150px; 
    left: 50%;
    transform: translateX(-50%);
    width: 800px; 
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 204, 255, 0.5) 0%, rgba(204, 204, 255, 0.5) 100%);
    border-radius: 40% 60% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.7;
    filter: blur(40px);
    z-index: 1;
}

.contact-page-wrapper::after {
    content: '';
    position: absolute;
    top: 80px;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 100% 0%, var(--color-secondary-pink) 0%, transparent 60%);
    opacity: 0.8;
    border-radius: 50%;
    z-index: 2;
    transform: rotate(20deg);
}

.contact-page-wrapper .team-cards-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 0% 100%, var(--color-secondary-pink) 0%, transparent 60%);
    opacity: 0.9;
    border-radius: 50%;
    z-index: 2;
    transform: rotate(-30deg);
}

.hero-text-area {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.page-title {
    font-size: 64px;
    font-weight: 800;
    color: transparent;
    background: linear-gradient(90deg, var(--color-accent-blue) 0%, #75E4A3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1.1;
}

.subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
    color: #555;
}

.subtitle-secondary {
    font-size: 18px;
    font-weight: 400;
    margin-top: 5px;
    color: #777;
}

.team-cards-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
    margin-bottom: 70px;
}

.member-card {
    background-color: white;
    border-radius: 30px;
    padding: 30px;
    width: 300px;
    text-align: center;
    position: relative;
    box-shadow: var(--card-default-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; 
    outline: none; 
}

.member-card:hover, .member-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.card-content {
    position: relative;
    z-index: 4; 
}

.member-photo3 {
    width: 120px;
    height: 120px;
    background-color: #eee;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 5px solid #f9f9f9;
    background-image: url("stanlie.jpg");
    background-size: cover;
    background-position: center center;
}

.member-photo2 {
    width: 120px;
    height: 120px;
    background-color: #eee;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 5px solid #f9f9f9;
    background-image: url("jesselyn.jpg");
    background-size: cover;
    background-position: center center;
}

.member-photo1 {
    width: 120px;
    height: 120px;
    background-color: #eee;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 5px solid #f9f9f9;
    background-image: url("carol.jpg");
    background-size: cover;
    background-position: center center;
}

.member-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.member-card .role {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary-pink);
    margin-bottom: 15px;
}

.contact-info {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.contact-info a {
    color: #888;
    font-weight: 500;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.member-card[data-member="stanlie"] { --glow-color: #609cb6; } 
.member-card[data-member="jesselyn"] { --glow-color: #c960a5; } 
.member-card[data-member="carol"] { --glow-color: #75E4A3; } 

.member-card.glow .card-glow {
    opacity: 0.25; 
}

.cta-section {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.cta-box {
    background: linear-gradient(90deg, #d8f5e7 0%, #c0e0f3 100%);
    border-radius: 50px;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(96, 156, 182, 0.2);
    max-width: 600px;
}

.cta-box p {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin: 0;
}

.cta-button {
    background-color: var(--color-accent-blue);
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #518ba8;
}

@media (max-width: 768px) {
    .contact-page-wrapper {
        padding-top: 80px;
        background-size: auto 100vh; 
        background-position: center top;
    }
    
    .team-cards-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .member-card {
        width: 90%;
        max-width: 350px;
        padding: 25px;
    }

    .page-title {
        font-size: 44px;
    }
    
    .contact-page-wrapper::before, 
    .contact-page-wrapper::after,
    .contact-page-wrapper .team-cards-section::before {
        display: none;
    }
}