
/* COMMON SECTION */
.showcase-section {
    position: relative;
    overflow: hidden;
    padding: 85px 5%;
    isolation: isolate;
}

/* COLOURFUL GALLERY BACKGROUND */
.gallery-section {
    background: linear-gradient(
        120deg,
        #eaffed,
        #fffdf0,
        #e0f7dc,
        #f4ffe9
    );
}

/* CERTIFICATION BACKGROUND */
.certificate-section {
    background: linear-gradient(
        120deg,
        #fff7df,
        #e7fff4,
        #f0f4ff,
        #fff9e9
    );
}

/* ANIMATED WAVY SHAPE */
.showcase-section::before,
.showcase-section::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 150px;
    left: -10%;
    border-radius: 45% 55% 0 0;
    z-index: -1;
    pointer-events: none;
}

.showcase-section::before {
    top: -95px;
    background: linear-gradient(90deg, #00964b, #a8d94d, #e5c45c);
    opacity: .18;
    animation: waveMove 9s ease-in-out infinite alternate;
}

.showcase-section::after {
    bottom: -115px;
    background: linear-gradient(90deg, #008c48, #c4df65, #f2c75b);
    opacity: .20;
    animation: waveMove 7s ease-in-out infinite alternate-reverse;
}

@keyframes waveMove {
    0% {
        transform: translateX(-3%) rotate(-2deg);
    }
    100% {
        transform: translateX(3%) rotate(2deg);
    }
}

/* SECTION HEADING */
.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading span {
    display: inline-block;
    padding: 7px 22px;
    border-radius: 30px;
    background: #087b3d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    color: #075b32;
    font-size: clamp(28px, 4vw, 43px);
    font-weight: 800;
    margin: 14px 0 8px;
}

.section-heading p {
    color: #627568;
    font-size: 16px;
}

/* IMAGE GRID */
.showcase-grid {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* IMAGE CARD */
.showcase-card {
    position: relative;
    padding: 9px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #d7f3d7, #e8ca72);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 12px 30px rgba(14, 83, 43, .14);
    overflow: hidden;
    transition: transform .45s ease, box-shadow .45s ease;
    animation: cardFloat 5s ease-in-out infinite;
}

.showcase-card:nth-child(even) {
    animation-delay: -2.5s;
}

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

.showcase-card:hover {
    transform: translateY(-12px) scale(1.025);
    box-shadow: 0 22px 45px rgba(0, 90, 43, .24);
}

.showcase-card img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform .6s ease;
}

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

/* CERTIFICATES: SHOW FULL DOCUMENT */
.certificate-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.certificate-card {
    background: linear-gradient(135deg, #fff, #f9edc9, #ffffff);
    border: 2px solid #d8b85e;
    border-radius: 17px;
    padding: 12px;
}

.certificate-card img {
    height: 300px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee5cf;
    border-radius: 9px;
}

/* TABLET */
@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .certificate-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* MOBILE */
@media (max-width: 550px) {
    .showcase-section {
        padding: 55px 18px;
    }

    .showcase-grid,
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .showcase-card img {
        height: 230px;
    }

    .certificate-card img {
        height: 320px;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .showcase-card,
    .showcase-section::before,
    .showcase-section::after {
        animation: none;
    }

    .showcase-card,
    .showcase-card img {
        transition: none;
    }
}
