
/* ==================== Vision section: theme colors ==================== */
:root {
    /* light */
    --sec-bg-a: #ffffff;
    --ink: #0b192c;
    --ink-muted: #4a5b6e;
    --glow: rgba(46, 204, 113, 0.18);
    --img-shadow: rgba(11, 25, 44, 0.18);
}

:root[data-theme="dark"] {
    --sec-bg-a: #0d1f35;
    --ink: #ffffff;
    --ink-muted: rgba(255, 255, 255, 0.78);
    --glow: rgba(46, 204, 113, 0.15);
    --img-shadow: rgba(0, 0, 0, 0.35);
}

/* Smooth color change when the theme is switched */
.vision-section {
    transition: background-color 0.4s ease;
}

.vision-text,
.vision-text strong,
.vision-feature h4,
.vision-feature p {
    transition: color 0.4s ease;
}

/* ==================== Scroll reveal ==================== */
/* Elements only start hidden when JS is running (the .js class is set in <head>). */
.js .reveal {
    opacity: 0;
    transition: opacity 0.9s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

.js .reveal-right {
    transform: translateX(120px) scale(0.96);
}

.js .reveal-left {
    transform: translateX(-80px);
}

.js .reveal-up {
    transform: translateY(30px);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==================== Vision ==================== */
.vision-section {
    background: var(--sec-bg-a);
    padding: 90px 0;
    position: relative;
    overflow: hidden; /* stops the sliding image from causing a horizontal scrollbar */
}

/* Title with short underline bar */
.vision-title {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
}

.vision-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--ink-muted);
    margin-bottom: 40px;
}

.vision-text strong {
    color: var(--ink);
    font-weight: 700;
}

/* Three icon features */
.vision-feature {
    text-align: center;
}

.vision-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.25);
    transition: all 0.3s ease;
}

.vision-feature:hover .vision-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.4);
}

.vision-feature h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.vision-feature p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink-muted);
    margin-bottom: 0;
}

/* Illustration */
.vision-visual {
    position: relative;
    text-align: center;
}

.vision-visual::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--glow), transparent 70%);
    z-index: 0;
}

.vision-visual img {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 30px var(--img-shadow));
}

/* Gentle floating starts only after the image has slid into place */
.vision-visual.is-visible img {
    animation: visionFloat 6s ease-in-out 1.2s infinite;
}

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

/* ==================== Responsive ==================== */
@media (max-width: 991.98px) {
    /* smaller slide distance on tablets and phones */
    .js .reveal-right {
        transform: translateX(60px) scale(0.96);
    }

    .js .reveal-left {
        transform: translateX(-40px);
    }
}

@media (max-width: 575.98px) {
    .vision-section {
        padding: 70px 0;
    }

    .vision-title {
        font-size: 2rem;
    }
}

/* Respect users who turn animations off */
@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .vision-section {
        transition: none;
    }

    .vision-visual.is-visible img {
        animation: none;
    }
}




















/* ==================== About page ==================== */
/* Colors come from the shared variables (style.css + theme.css),
   so this page follows the light / dark theme automatically. */

.about-hero {
    min-height: 50vh;
    background-color: var(--dark-bg);
}

.about-hero .hero-title span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Sections ---- */
.about-story {
    background-color: var(--dark-bg);
}

.about-mission {
    background-color: var(--sec-alt);
}

.about-photo {
    border: 1px solid var(--soft-line);
}

.about-text {
    color: #e2e8f0;
    line-height: 1.7;
}

:root[data-theme="light"] .about-text {
    color: var(--text-muted);
}

/* ---- Stat cards ---- */
.stat-card {
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--soft-line);
}

.stat-number {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-ink);
}

.stat-label {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ---- Mission & Vision cards ---- */
.mv-card {
    background: var(--card-bg);
    border: 1px solid rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease;
}

.mv-title {
    color: var(--text-light);
    font-weight: 700;
}

.mv-text {
    margin-bottom: 0;
    line-height: 1.7;
    color: #e2e8f0;
}

:root[data-theme="light"] .mv-text {
    color: var(--text-muted);
}

:root[data-theme="light"] .mv-card {
    box-shadow: 0 10px 30px rgba(11, 25, 44, 0.06);
}

.mv-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-ink);
    transition: all 0.3s ease;
}

.mv-card:hover .icon-box {
    background: var(--accent);
    color: #0b192c;
    transform: scale(1.05);
}