/* pages/about.css */

/* ---------- Hero Section ---------- */
.hero--about {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 82px);
    background: linear-gradient(135deg, #4caf50 60%, #81c784 30%, #a5d6a7 10%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero__title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero__subtitle {
    font-size: 1.5rem;
}

/* Floating leaves */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: url('https://cdn-icons-png.flaticon.com/512/616/616408.png') no-repeat center/contain;
    animation: floatLeaves 10s linear infinite;
    opacity: 0.6;
}

.hero::after {
    left: 20%;
    top: 50%;
    animation-delay: 3s;
}

.hero::before {
    right: 15%;
    top: 60%;
    animation-delay: 6s;
}

@keyframes floatLeaves {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-30px) rotate(15deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
}

/* ---------- About Section ---------- */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, #e8f5e9, #ffffff);
}

.about__content .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2e7d32;
}

.about__text {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

/* Values Cards */
.about__values {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.value-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.value-card__icon {
    width: 60px;
    margin-bottom: 1rem;
}

.value-card__title {
    font-size: 1.3rem;
    color: #388e3c;
    margin-bottom: 0.5rem;
}

.value-card__desc {
    font-size: 1rem;
    color: #555;
}

/* ---------- Team Section ---------- */
.team {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff, #e8f5e9);
    text-align: center;
    position: relative; /* for absolute floating leaves */
    overflow: hidden;
}

/* Floating leaves around team section */
.team::before,
.team::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('https://cdn-icons-png.flaticon.com/512/616/616408.png') no-repeat center/contain;
    opacity: 0.5;
    animation: floatLeavesTeam 12s linear infinite;
}

.team::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.team::after {
    bottom: 15%;
    right: 12%;
    animation-delay: 6s;
}

/* Floating animation for leaves */
@keyframes floatLeavesTeam {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.team__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem; /* increased gap from 3rem */
    margin-top: 3rem;
}

/* ---------- Team Section Updated ---------- */
.team__member {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    width: 250px; /* card width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.team__member:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.team__img {
    border-radius: 50%;
    width: 160px;
    height: 160px;
    object-fit: cover;
    margin-bottom: 1rem;
    animation: floatTeam 6s ease-in-out infinite; /* floating animation */
}

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

.team__name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 0.3rem;
}

.team__role {
    font-size: 1.1rem;
    color: #555;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .team__member {
        width: 280px; /* wider on tablet */
    }
    .team__img {
        width: 180px;
        height: 180px;
    }
}

@media screen and (max-width: 576px) {
    .team__member {
        width: 90%;
    }
    .team__img {
        width: 140px;
        height: 140px;
    }
}


/* ---------- Responsive ---------- */
@media screen and (max-width: 992px) {
    .about__values {
        flex-direction: column;
        align-items: center;
    }

    .team__grid {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 576px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }
}