/*-- Root colors --*/
:root {
    --env-green: #55AB71;
    --env-green2: #658C58;
    --mh-card: #50BBC7;
    --partner-card: #C8E31B;
    --env-card: #63ED40;
    --bg-color: #ffffff;
    --card-color: #333D3D;
    --muted: #3D2F4A;
    --white: #ffffff;
    --blur-amount: 8px;

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    color: black;
    background: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--env-green);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.logo img {
    max-height: 40px;
    width: auto;
}

nav.nav-bar {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

nav.nav-bar a {
    color: var(--muted);
    font-size: 1.2rem;
    text-decoration: none;
    padding: .6rem;
    border-radius: 1.6rem;
    transition: all 0.3s ease;
}

nav.nav-bar a.active,
nav.nav-bar a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.20);
}

.toggle-icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

#menu-icon {
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--muted);
    display: none;
}

/* Hero Section */
.hero {
    min-height: 92vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 12rem 6% 6rem;

}

.hero-content h1 {
    font-size: 4.8rem;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 2.5rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.multiple-text {
    color: var(--env-card);
    font-weight: 800;
}

.hero-cta {
    margin-top: 2.4rem;
    display: flex;
    gap: 1.2rem;
}

.btn {
    padding: 1rem 2.4rem;
    border-radius: 6rem;
    background: linear-gradient(90deg, var(--mh-card), var(--env-card));
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(10, 30, 60, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(10, 30, 60, 0.4);
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration .image-placeholder {
    width: 80%;
    max-width: 400px;
    aspect-ratio: 1/1;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px dashed rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--muted);
    overflow: hidden;
}

.hero-illustration .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem;
}

/* Sections */
section {
    padding: 8rem 6%;
}

#who,#programs,#team{
     background: #E0D9D9;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount)); /* Safari support */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    font-size: 3.2rem;
    margin-bottom: 2rem;
}

.muted {
    color: var(--muted);
}

/* Who we are (cards) */
.who-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem;
    align-items: start;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 2.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-20px);
}

.card h4 {
    margin-bottom: 1rem;
}

/* Services / Work */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-item {
    padding: 1.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(+10px);
}

/* Card colors */
#environment, .work-item:hover {
    background: var(--env-card);
}

#mhealth {
    background: var(--mh-card);
}

#partner {
    background: var(--partner-card);
}

.work-item h3 {
    margin-bottom: .8rem;
}



/* Background slider for the entire section */
#work {
    position: relative;
    overflow: hidden;
}

.section-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section-slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

#work:hover .section-slider-track {
    transform: translateX(-33.333%);
}

.section-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.section-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

#work:hover .section-slide img {
    opacity: 0.50;
}

/* Ensure content container is above the slider */
#work .container {
    position: relative;
    z-index: 2;
}

/* Your existing CSS preserved exactly as is */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-item {
    padding: 1.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(+10px);
}

/* Card colors */
#environment, .work-item:hover {
    background: var(--env-card);
}

#mhealth {
    background: var(--mh-card);
}

#partner {
    background: var(--partner-card);
}

.work-item h3 {
    margin-bottom: .8rem;
}
/*END OF TRIAL*/

/* Programs list */
.prog-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.prog-list {
    list-style: none;
    padding-left: 1rem;
}

.prog-list li {
    margin: 0.6rem 0;
    position: relative;
}

.prog-list li::before {
    content: "•";
    color: var(--env-green);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Values */
.values {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.value-pill {
    padding: .8rem 1.2rem;
    border-radius: 200px 10px 200px 10px;
    background: linear-gradient(90deg, var(--env-card), var(--mh-card));
    color: var(--white);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.value-pill:hover {
    transform: scale(1.05);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;

}

.team-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.20));
    padding: 1.4rem;
    border-radius: .8rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card .photo {
    width: 100%;
    /*height: 18rem;*/
    aspect-ratio: 1; /*makes it square*/
    border-radius: .6rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.team-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .6rem;
    transition: transform 0.3s ease;
}

.team-card:hover .photo img {
    transform: scale(1.05);
}

/* Contact */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin: 0.6rem 0;
    border-radius: .6rem;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: var(--white);
    color: var(--muted);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--env-green);
    box-shadow: 0 0 0 2px rgba(85, 171, 113, 0.2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Footer */
footer {
    padding: 3rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--env-green);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== MEDIA QUERIES ========== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .hero {
        gap: 3rem;
        padding: 10rem 6% 4rem;
    }

    .hero-content h1 {
        font-size: 3.8rem;
    }

    .hero-sub {
        font-size: 1.6rem;
    }

    .section-heading {
        font-size: 2.8rem;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (600px - 767px) */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    header {
        padding: 1rem 5%;
    }

    #menu-icon {
        display: inline-block;
    }

    nav.nav-bar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--env-green);
        backdrop-filter: blur(6px);
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: flex;
    }

    nav.nav-bar.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav.nav-bar a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.nav-bar a:last-child {
        border-bottom: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 8rem 5% 3rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-sub {
        font-size: 1.4rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-illustration {
        order: -1;
    }

    .hero-illustration .image-placeholder {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 6rem 5%;
    }

    .section-heading {
        font-size: 2.4rem;
        text-align: center;
    }

    .who-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .prog-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .values {
        gap: 1rem;
    }

    .value-pill {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Small Mobile (up to 599px) */
@media (max-width: 599px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1.2rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .team-card .photo {
        height: 15rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        width: 100%;
        max-width: 250px;
    }
}

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    section {
        padding: 10rem 6%;
    }
}