/* ========================================
   About Page — Premium Animations & Styles
   ======================================== */

/* ---------- Keyframe Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

/* ---------- Scroll-reveal base ---------- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(.25,.46,.45,.94),
                transform 0.8s cubic-bezier(.25,.46,.45,.94);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(.25,.46,.45,.94),
                transform 0.8s cubic-bezier(.25,.46,.45,.94);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(.25,.46,.45,.94),
                transform 0.8s cubic-bezier(.25,.46,.45,.94);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.45s; }

/* ---------- Hero Section ---------- */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, #1a5c2d 0%, #34AD54 40%, #2e8b47 70%, #1a5c2d 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,153,51,.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,.06) 0%, transparent 40%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #ffffff 0%, transparent 100%);
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 4px 30px rgba(0,0,0,.25);
}

.about-hero .breadcrumb-links {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.about-hero .breadcrumb-links a,
.about-hero .breadcrumb-links span {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-hero .breadcrumb-links a:first-child {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
}

.about-hero .breadcrumb-links a:first-child:hover {
    background: rgba(255,255,255,.28);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.about-hero .breadcrumb-links span:last-child {
    background: var(--secondary);
    color: #fff;
}

/* ---------- About Section ---------- */
.about-section {
    padding: 100px 0 80px;
    overflow: hidden;
}

.about-img-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(52, 173, 84, .18);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-img-wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(52, 173, 84, .28);
}

.about-img-wrap img {
    display: block;
    width: 100%;
    transition: transform 0.6s ease;
}

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

.about-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--primary);
    border-radius: 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.about-img-wrap:hover::after {
    opacity: 1;
}

.about-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    position: relative;
    padding-left: 50px;
    margin-bottom: 12px;
}

.about-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 38px;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 20px;
}

.about-text {
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 35px;
}

/* Feature cards */
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.feature-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(52, 173, 84, .14);
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(52,173,84,.12), rgba(255,153,51,.12));
    color: var(--primary);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.12) rotate(-5deg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Facts / Stats Section ---------- */
.stats-section {
    background: linear-gradient(135deg, #1a5c2d 0%, #34AD54 50%, #2e8b47 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: .6;
}

.stat-card {
    position: relative;
    text-align: center;
    padding: 35px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.12);
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,.15);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.stat-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: transform 0.4s ease;
    box-shadow: 0 6px 20px rgba(255,153,51,.35);
}

.stat-card:hover .stat-icon {
    transform: scale(1.15);
    animation: pulse 1.2s ease infinite;
}

.stat-card h5 {
    color: rgba(255,255,255,.85);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.stat-card .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* ---------- Team Section ---------- */
.team-section {
    padding: 100px 0;
    background: var(--light);
    overflow: hidden;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    position: relative;
    padding-left: 50px;
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 38px;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 50px;
}

.team-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(52,173,84,.18);
}

.team-card .team-img {
    position: relative;
    overflow: hidden;
    height: 320px;
}

.team-card .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.08);
}

.team-card .team-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(26,92,45,.85) 0%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.4s;
}

.team-card .team-info {
    padding: 25px;
    text-align: center;
}

.team-card .team-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.team-card .team-info span {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 18px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(52,173,84,.1), rgba(255,153,51,.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.team-socials a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(52,173,84,.3);
}

/* ---------- Animated counter ---------- */
.counter-animated {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ---------- Parallax Decorative Shapes ---------- */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.deco-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,153,51,.08), transparent 70%);
    top: -120px;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.deco-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52,173,84,.06), transparent 70%);
    bottom: -60px;
    left: -40px;
    animation: float 6s ease-in-out infinite 1s;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .about-hero {
        min-height: 280px;
    }
    .about-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .stat-card .stat-number {
        font-size: 2.2rem;
    }
    .team-card .team-img {
        height: 260px;
    }
}

@media (max-width: 575.98px) {
    .about-hero h1 {
        font-size: 2rem;
    }
    .about-title {
        font-size: 1.6rem;
    }
    .stat-card {
        padding: 25px 15px;
    }
    .stat-card .stat-number {
        font-size: 1.8rem;
    }
    .feature-card {
        padding: 22px 18px;
    }
}

/* ---------- Smooth page load ---------- */
.page-loaded .about-hero {
    animation: slideDown 0.8s ease-out;
}
