/* =========================================================
   SUSTAINABILITY PAGE (sustainable.php)
   Backgrounds + hover animations. Everything is scoped to this
   page's sections. Scroll entrances come from Js/scroll-animations.js.
   ========================================================= */

:root {
    --sp-green: #19a985;
    --sp-green-dark: #12655f;
    --sp-forest: #092c2a;
    --sp-blue: #118ba7;
    --sp-gold: #ffae00;
    --sp-mint: #e1f7f1;
    --sp-ink: #132625;
    --sp-text: #4b5d5b;
}

/* ---------- 1. Banner: slow zoom + green tint ---------- */
.sp-banner {
    isolation: isolate;
    background-image: none !important;
    min-height: 320px;
}

.sp-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('../assets/images/sustainability-img/sustainability-banner.jpg') center / cover no-repeat;
    animation: spKenBurns 18s ease-in-out infinite alternate;
}

.sp-banner .zk-overlay {
    background: linear-gradient(100deg, rgba(9, 44, 42, 0.85) 0%, rgba(9, 44, 42, 0.6) 50%, rgba(17, 139, 167, 0.35) 100%);
}

.sp-banner .zk-about-content h2 {
    position: relative;
    letter-spacing: 2px;
}

/* Gold underline that draws in under the banner title */
.sp-banner .zk-about-content h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sp-green), var(--sp-gold));
    animation: spLineGrow 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}

@keyframes spKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.12); }
}

@keyframes spLineGrow {
    from { width: 0; }
    to   { width: 70px; }
}

/* ---------- 2. "Shaping a Cleaner, Greener Future" ---------- */
.sustainability-section {
    background-color: #effaf7;
    background-image:
        radial-gradient(circle at 8% 20%, rgba(25, 169, 133, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 92% 80%, rgba(17, 139, 167, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #f6fcfb 0%, #e1f7f1 100%);
}

.sustainability-image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(9, 44, 42, 0.18);
}

.sustainability-image img {
    display: block;
    width: 100%;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sustainability-image:hover img {
    transform: scale(1.07);
}

/* Floating leaf badge on the photo */
.sustainability-image::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f06c";
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--sp-green), var(--sp-green-dark));
    box-shadow: 0 10px 24px rgba(25, 169, 133, 0.4);
    animation: spFloat 4s ease-in-out infinite;
}

.sustainability-content h2 {
    color: var(--sp-ink);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
}

.sustainability-content h3 {
    color: var(--sp-green);
}

/* List items become small cards with a check icon */
.sustainability-content ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 12px;
}

.sustainability-content ul li {
    position: relative;
    margin-bottom: 0;
    padding: 12px 16px 12px 46px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #d7f0e9;
    color: var(--sp-text);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.sustainability-content ul li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f058";
    position: absolute;
    left: 16px;
    top: 13px;
    color: var(--sp-green);
}

.sustainability-content ul li:hover {
    transform: translateX(6px);
    border-color: var(--sp-green);
    box-shadow: 0 10px 22px rgba(9, 44, 42, 0.1);
}

/* ---------- 3. "What we do with your E-Waste" (dark band) ---------- */
.ewaste-section {
    background-color: var(--sp-forest);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(25, 169, 133, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(17, 139, 167, 0.22) 0%, transparent 40%),
        linear-gradient(135deg, #092c2a 0%, #10413e 50%, #092c2a 100%);
}

.ewaste-left .feature-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    color: var(--sp-gold);
    background: rgba(255, 174, 0, 0.12);
    font-weight: 700;
    font-size: 13px;
}

.ewaste-left h2 {
    color: #fff;
}

.ewaste-left .btn-primary {
    background: var(--sp-gold);
    color: var(--sp-forest);
    border-radius: 50px;
    padding: 13px 26px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, background 0.35s ease;
}

.ewaste-left .btn-primary:hover {
    background: #fff;
    color: var(--sp-forest);
    transform: translateY(-3px);
}

/* Cards: white panels, image zoom, numbered */
.ewaste-right {
    counter-reset: spEwaste;
}

.ewaste-card {
    counter-increment: spEwaste;
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 14px 14px 22px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.ewaste-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.35);
}

.ewaste-card img {
    display: block;
    width: 100%;
    border-radius: 14px;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ewaste-card:hover img {
    transform: scale(1.06);
}

/* Step number badge on the image */
.ewaste-card::before {
    content: "0" counter(spEwaste);
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--sp-forest);
    background: var(--sp-gold);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.6s ease;
}

.ewaste-card:hover::before {
    transform: rotate(360deg) scale(1.1);
}

.ewaste-card h3,
.ewaste-card p {
    padding: 0 6px;
}

.ewaste-card h3 {
    color: var(--sp-ink);
    transition: color 0.35s ease;
}

.ewaste-card:hover h3 {
    color: var(--sp-green);
}

.ewaste-card p {
    color: var(--sp-text);
}

/* ---------- 4. "Recycling for a Sustainable and Equitable Society" ---------- */
.recycling-section {
    background-color: #d3eef4;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(25, 169, 133, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(17, 139, 167, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #d3f3fa 0%, #cde9ee 100%);
}

.recycling-left h2 {
    color: var(--sp-ink);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
}

.recycling-list {
    display: grid;
    gap: 12px;
}

.recycling-list li {
    margin-bottom: 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff;
    border-left: 4px solid var(--sp-green);
    box-shadow: 0 6px 16px rgba(9, 44, 42, 0.06);
    color: var(--sp-text);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.recycling-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 14px 28px rgba(9, 44, 42, 0.12);
}

.recycling-right img {
    box-shadow: 0 20px 44px rgba(9, 44, 42, 0.18);
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.recycling-right img:hover {
    transform: scale(1.03) rotate(-1deg);
}

/* ---------- 5. Certifications ---------- */
.certifications-section {
    background-color: #effaf7;
    background-image: linear-gradient(180deg, #f6fcfb 0%, #e1f7f1 100%);
}

.certifications-section .section-title h2 {
    color: var(--sp-ink);
    font-weight: 800;
}

.certifications-section .section-title p {
    color: var(--sp-green);
    font-weight: 700;
}

.certificate-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border-top: 4px solid var(--sp-green);
    box-shadow: 0 12px 30px rgba(9, 44, 42, 0.12);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.certificate-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 26px 48px rgba(9, 44, 42, 0.2);
}

.certificate-card img {
    transition: transform 0.6s ease;
}

.certificate-card:hover img {
    transform: scale(1.04);
}

/* Light shine sweeping across on hover */
.certificate-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.certificate-card:hover::after {
    animation: spShine 0.9s ease;
}

.certificate-card .btn {
    border-radius: 50px;
    padding: 11px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card .btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

@keyframes spShine {
    to { left: 130%; }
}

/* ---------- 6. 4-step action plan ---------- */
.recycle-steps {
    background-color: #d3eef4;
    background-image:
        radial-gradient(circle at 12% 15%, rgba(25, 169, 133, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 88% 85%, rgba(17, 139, 167, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #d3f3fa 0%, #cde9ee 100%);
}

.recycle-steps h2 {
    color: var(--sp-ink);
}

.recycle-steps h2 span {
    color: var(--sp-green);
}

.step-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(9, 44, 42, 0.12);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.green-card { background: linear-gradient(150deg, #19a985 0%, #12655f 100%); }
.blue-card  { background: linear-gradient(150deg, #1ba5c5 0%, #0a6c84 100%); }
.light-card { background: #ffffff; border: 1px solid #d7f0e9; }

.step-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 46px rgba(9, 44, 42, 0.22);
}

/* Big soft circle that grows in the corner on hover */
.step-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 160px;
    height: 160px;
    right: -60px;
    top: -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.light-card::before {
    background: rgba(25, 169, 133, 0.08);
}

.step-card:hover::before {
    transform: scale(2.4);
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.light-card .step-icon {
    background: var(--sp-mint);
}

.step-icon img {
    max-width: 38px;
    max-height: 38px;
}

.step-card:hover .step-icon {
    transform: rotateY(360deg);
}

@keyframes spFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-banner::before,
    .sustainability-image::after,
    .sp-banner .zk-about-content h2::after {
        animation: none !important;
    }
}

/* =====================================================================
   Sustainability page — nature-themed section backgrounds (unique):
   falling leaves + sun rays, firefly night sky, rain, sunburst,
   walking footprints. Each with its own big faint animated icons.
   ===================================================================== */
body .sustainability-section,
body .ewaste-section,
body .recycling-section,
body .certifications-section,
body .recycle-steps {
    position: relative;
    overflow-x: clip;
    isolation: isolate;
}
body .sustainability-section::before, body .sustainability-section::after,
body .ewaste-section::before, body .ewaste-section::after,
body .recycling-section::before, body .recycling-section::after,
body .certifications-section::before, body .certifications-section::after,
body .recycle-steps::before, body .recycle-steps::after {
    position: absolute;
    z-index: -1;
    line-height: 1;
    pointer-events: none;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* 1) Cleaner, Greener Future — drifting leaf pattern + turning sun rays + tree */
body .sustainability-section {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%2319a985' fill-opacity='.10'%3E%3Cpath d='M20 40c0-14 12-22 26-22-1 14-10 24-26 22z'/%3E%3Cpath d='M80 96c4-13 18-17 30-12-5 12-17 18-30 12z'/%3E%3C/g%3E%3Cg fill='none' stroke='%2319a985' stroke-opacity='.14' stroke-width='1.2'%3E%3Cpath d='M20 40l20-16M80 96l24-10'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px,
        radial-gradient(circle at 8% 20%, rgba(25, 169, 133, 0.12) 0, rgba(25, 169, 133, 0) 40%),
        radial-gradient(circle at 92% 80%, rgba(255, 174, 0, 0.12) 0, rgba(255, 174, 0, 0) 35%),
        linear-gradient(180deg, #effaf7 0%, #ffffff 100%);
    animation: spLeaves 30s linear infinite;
}
body .sustainability-section::before {
    content: "";
    top: -260px; right: -260px;
    width: 560px; height: 560px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 174, 0, 0.10) 0 6deg, transparent 6deg 18deg);
    -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%);
            mask: radial-gradient(circle, #000 20%, transparent 70%);
    animation: spSpin 60s linear infinite;
}
body .sustainability-section::after {
    content: "\f1bb";
    bottom: 20px; left: 2%;
    font-size: 220px;
    color: rgba(25, 169, 133, 0.09);
    transform-origin: 50% 100%;
    animation: spSway 7s ease-in-out infinite;
}

/* 2) What we do with your E-Waste (dark) — twinkling fireflies + solar panel & wind */
body .ewaste-section::before {
    content: "";
    inset: 0;
    background:
        radial-gradient(circle, rgba(157, 247, 236, 0.55) 0 1.5px, transparent 2.5px) 0 0 / 130px 150px,
        radial-gradient(circle, rgba(255, 174, 0, 0.45) 0 1.5px, transparent 2.5px) 50px 70px / 190px 170px,
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 90px 20px / 110px 210px;
    animation: spTwinkle 4s ease-in-out infinite alternate, spDrift 40s linear infinite;
}
body .ewaste-section::after {
    content: "\f5ba";
    bottom: 30px; right: 2%;
    font-size: 230px;
    color: rgba(255, 255, 255, 0.05);
    animation: spFloat 9s ease-in-out infinite;
}

/* 3) Recycling for a Sustainable World — gentle rain + drifting cloud */
body .recycling-section {
    background:
        repeating-linear-gradient(105deg, transparent 0 34px, rgba(9, 146, 178, 0.09) 34px 36px, transparent 36px 70px) 0 0 / 100% 140px,
        radial-gradient(circle at 10% 15%, rgba(25, 169, 133, 0.12) 0, rgba(25, 169, 133, 0) 40%),
        radial-gradient(circle at 90% 85%, rgba(9, 146, 178, 0.12) 0, rgba(9, 146, 178, 0) 40%),
        linear-gradient(180deg, #e3f4f6 0%, #f1faf8 100%);
    animation: spRain 3s linear infinite;
}
body .recycling-section::before {
    content: "\f0c2";
    top: 30px; left: 2%;
    font-size: 200px;
    color: rgba(9, 146, 178, 0.10);
    animation: spCloud 22s ease-in-out infinite alternate;
}
body .recycling-section::after {
    content: "\f043";
    bottom: 40px; right: 3%;
    font-size: 170px;
    color: rgba(25, 169, 133, 0.10);
    animation: spDrop 3.5s ease-in infinite;
}

/* 4) Certifications — faint sunburst + turning badge + stamping seal */
body .certifications-section {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0) 0, #ffffff 65%),
        repeating-conic-gradient(from 0deg at 50% 0%, rgba(25, 169, 133, 0.07) 0 4deg, transparent 4deg 12deg),
        #ffffff;
}
body .certifications-section::before {
    content: "\f0a3";
    top: 30px; left: 2%;
    font-size: 200px;
    color: rgba(255, 174, 0, 0.15);
    animation: spSpin 40s linear infinite;
}
body .certifications-section::after {
    content: "\f5bf";
    bottom: 30px; right: 3%;
    font-size: 170px;
    color: rgba(25, 169, 133, 0.10);
    animation: spStamp 4s ease-in-out infinite;
}

/* 5) 4-step action plan — dashed trail + footprints walking across */
body .recycle-steps {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80'%3E%3Cpath d='M0 40Q60 0 120 40T240 40' fill='none' stroke='%2319a985' stroke-opacity='.18' stroke-width='2' stroke-dasharray='6 8'/%3E%3C/svg%3E") 0 50% / 240px 80px repeat-x,
        radial-gradient(circle at 12% 15%, rgba(25, 169, 133, 0.12) 0, rgba(25, 169, 133, 0) 40%),
        radial-gradient(circle at 88% 85%, rgba(255, 174, 0, 0.12) 0, rgba(255, 174, 0, 0) 40%),
        linear-gradient(180deg, #e3f4f6 0%, #eefaf7 100%);
    animation: spTrail 10s linear infinite;
}
body .recycle-steps::before {
    content: "\f54b";
    top: 24px; left: 0;
    font-size: 70px;
    color: rgba(25, 169, 133, 0.16);
    rotate: 90deg;
    animation: spWalk 16s linear infinite;
}
body .recycle-steps::after {
    content: "\f024";
    bottom: 20px; right: 3%;
    font-size: 150px;
    color: rgba(255, 174, 0, 0.16);
    transform-origin: 0 100%;
    animation: spWave 2.5s ease-in-out infinite;
}

@keyframes spLeaves { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 240px 480px, 0 0, 0 0, 0 0; } }
@keyframes spSpin { to { transform: rotate(360deg); } }
@keyframes spSway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes spTwinkle { 0% { opacity: 0.35; } 100% { opacity: 1; } }
@keyframes spDrift { from { background-position: 0 0, 50px 70px, 90px 20px; } to { background-position: 130px -300px, -140px -270px, 200px -420px; } }
@keyframes spFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -24px; } }
@keyframes spRain { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: -38px 140px, 0 0, 0 0, 0 0; } }
@keyframes spCloud { from { translate: 0 0; } to { translate: 220px 10px; } }
@keyframes spDrop { 0% { translate: 0 -40px; opacity: 0; } 30% { opacity: 1; } 80% { translate: 0 10px; opacity: 1; } 100% { translate: 0 20px; opacity: 0; } }
@keyframes spStamp { 0%, 60%, 100% { transform: scale(1) rotate(-10deg); } 70% { transform: scale(1.25) rotate(-10deg); } 80% { transform: scale(0.95) rotate(-10deg); } }
@keyframes spTrail { from { background-position: 0 50%, 0 0, 0 0, 0 0; } to { background-position: 240px 50%, 0 0, 0 0, 0 0; } }
@keyframes spWalk { 0% { translate: -100px 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { translate: calc(100vw + 20px) 0; opacity: 0; } }
@keyframes spWave { 0%, 100% { transform: skewY(0deg); } 50% { transform: skewY(-6deg); } }

@media (max-width: 767px) {
    body .sustainability-section::after,
    body .ewaste-section::after,
    body .recycling-section::before, body .recycling-section::after,
    body .certifications-section::before, body .certifications-section::after,
    body .recycle-steps::after { font-size: 110px; }
    body .sustainability-section::before { width: 340px; height: 340px; top: -170px; right: -170px; }
    body .recycle-steps::before { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    body .sustainability-section, body .recycling-section, body .recycle-steps,
    body .sustainability-section::before, body .sustainability-section::after,
    body .ewaste-section::before, body .ewaste-section::after,
    body .recycling-section::before, body .recycling-section::after,
    body .certifications-section::before, body .certifications-section::after,
    body .recycle-steps::before, body .recycle-steps::after { animation: none; }
}
