
/* ==================================================
   RESET
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==================================================
   ROOT
================================================== */

:root {
    --primary-color: #0F766E;
    --secondary-color: #FACC15;
    --accent-color: #22C55E;
    --background-color: #F0FDFA;
    --text-color: #1E293B;
    --white-color: #FFFFFF;
    --light-color: #CCFBF1;

    --heading-font: 'Poppins', sans-serif;
}


/* ==================================================
   BODY
================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--heading-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5em;
}


/* ==================================================
   NAVBAR
================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 7%;
    box-shadow: 0 3px 15px rgba(15, 118, 110, 0.15);
}


/* Logo */

.logo {
    display: flex;
    gap: 10px;
    
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}




.logo h1 {
    color: var(--white-color);
    font-size: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
}


/* Navigation Menu */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    position: relative;
    color: var(--white-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}


/* ==================================================
   HOME / HERO
================================================== */

.home {
    min-height: 90vh;
    padding: 80px 7%;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        var(--background-color),
        var(--white-color)
    );
}

.home-content {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.home-text {
    flex: 1;
}

.tagline,
.section-label {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.home-text h1 {
    max-width: 600px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.home-text > p:not(.tagline) {
    max-width: 600px;
    color: #475569;
    margin-bottom: 30px;
}


/* Primary Button */

.btn-primary a {
    display: inline-block;
    padding: 13px 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}


/* Hero Image */

.home-image {
    flex: 1;
}

.home-image img {
    width: 100%;
    max-width: 550px;
    height: 420px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(15, 118, 110, 0.18);
}


/* ==================================================
   ABOUT
================================================== */

.about-section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 7%;
    display: flex;
    align-items: center;
    gap: 70px;
}

.image-box,
.text-box {
    flex: 1;
}

.image-box img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 25px;
}

.text-box h2,
.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-box p:not(.section-label) {
    color: #475569;
}

.mission-vision {
    margin-top: 30px;
}

.vision h3,
.mission h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.vision p,
.mission li {
    color: #64748B;
    font-size: 14px;
} 

.mission ul {
    padding-left: 20px;
}

.mission li {
    margin-bottom: 8px;
}




/* ==================================================
   PROGRAMS
================================================== */

.programs {
    padding: 100px 7%;
    background-color: var(--white-color);
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.program-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.program-card {
    flex: 1 1 250px;
    max-width: 280px;
    padding: 35px 25px;
    background-color: var(--background-color);
    border-radius: 20px;
    text-align: center;
    border: 1px solid #CCFBF1;
    transition: 0.3s ease;
}

.program-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    font-size: 25px;
}

.program-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.program-card p {
    color: #64748B;
    font-size: 14px;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.15);
}


/* ==================================================
   GALLERY
================================================== */

.gallery {
    padding: 100px 7%;
}

.gallery-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 18px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}


/* ==================================================
   CONTACT
================================================== */

.contact {
    padding: 100px 7%;
    background-color: var(--white-color);
}

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.contact-item {
    flex: 1 1 200px;
    max-width: 250px;
    padding: 30px 20px;
    text-align: center;
    background-color: var(--background-color);
    border-radius: 18px;
    transition: 0.3s ease;
}

.contact-item i {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    margin-bottom: 8px;
}

.contact-item p {
    color: #64748B;
    font-size: 14px;
}

.contact-item:hover {
    transform: translateY(-6px);
}


/* ==================================================
   FOOTER
================================================== */

footer {
    padding: 50px 7%;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

footer h2 {
    margin-bottom: 5px;
}

footer > p {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-links a,
footer > a {
    color: var(--white-color);
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links a:hover,
footer > a:hover {
    color: var(--secondary-color);
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 850px) {

    .navbar {
        padding: 14px 5%;
    }

    .nav-menu {
        gap: 15px;
    }

    .home-content,
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .home {
        padding: 70px 5%;
    }

    .home-text > p:not(.tagline) {
        margin-left: auto;
        margin-right: auto;
    }

    .home-image img {
        height: 350px;
    }

    .about-section {
        padding: 80px 5%;
    }

    .image-box img {
        height: 350px;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    .home {
        min-height: auto;
        padding: 60px 20px;
    }

    .home-text h1 {
        font-size: 40px;
    }

    .home-image img {
        height: 280px;
    }

    .programs,
    .gallery,
    .contact {
        padding: 70px 20px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 230px;
    }

    .contact-item {
        max-width: 100%;
    }

}

/* ======= STYLE JS========= */

/* ===============================
   BACK TO TOP
================================ */

footer > a[href="#top"] {
    opacity: 0.7;
    transition: 0.3s ease;
}

footer > a[href="#top"].show {
    opacity: 1;
}


/* ===============================
   SCROLL ANIMATION
================================ */

.hidden-section {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.7s ease;
}

.show-section {
    opacity: 1;
    transform: translateY(0);
}


/* ===============================
   ACTIVE NAV
================================ */

.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a.active::after {
    width: 100%;
}
