/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #41A3CD; /* primary color */
}

a:hover {
    color: #94C247; /* secondary color */
}

ul {
    list-style: none;
    padding: 0;
}

li {
    display: inline;
    margin-right: 20px;
}

/* Header Section */
nav {
    position: sticky;
    top: 0;
    overflow: hidden;
    background-color: rgba(221, 221, 221, 0.6);
    display: flex;
    justify-content: space-around;
    padding: 5px;
    z-index: 10;
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 1rem;
}

.nav-list a {
    color: black;
    font-size: 1rem;
}

.nav-list a:hover {
    color: #94C247;
}


/* Hamburger Icon (Mobile Menu Button) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    margin-top: 1rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 5px;
}

/* For Mobile - Show the hamburger icon and hide the nav list */
@media (max-width: 768px) {
    .nav-list {
        display: none; /* Hide nav list on mobile */
        width: 20%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-list.show {
        display: flex; /* Show the nav list when toggled */
    }

    .hamburger {
        display: flex; /* Show the hamburger icon */
    }

    .logo {
        margin-left: 4rem;
    }
}

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/2.jpg');
    background-size: cover;
    background-position: center;
    height: 65vh;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-section .overlay {
    padding: 10% 0;
}

.hero-section .hero-text {
    padding: 0% 10%;
}

.hero-section .hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
}

.hero-section .hero-text p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 15px;
}

/* About Section */
.section-about {
    padding: 50px 20px;
    background-color: #ffffff;
}

.section-about .content {
    text-align: center;
    padding: 0% 10%;
}

.section-about h2 {
    color: #41A3CD;
    font-size: 2.5rem;
}

.section-about p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 20px;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

/* Services Section */
.section-services {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.section-services h2 {
    text-align: center;
    color: #41A3CD;
    font-size: 2.5rem;
}

.section-services p {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-top: 20px;
    padding: 0% 10%;
}

.services-list {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0% 10%;
}

.service-item1,
.service-item2,
.service-item3,
.service-item4,
.service-item5,
.service-item6
 {
    width: 28%;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: all 0.3s ease-in-out;
    background-size: cover;
    background-position: center;
    position: relative;
    height: 20rem;
    margin-bottom: 0.5rem;
}

.service-item1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/n-service1.jpg');
}
.service-item2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/n-service2.jpg');
}
.service-item3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/n-service3.jpg');
}
.service-item4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/n-service4.jpg');
}
.service-item5 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/n-service5.jpg');
}
.service-item6 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/n-service6.jpg');
}


.service-item1 img,
.service-item2 img,
.service-item3 img,
.service-item4 img,
.service-item5 img,
.service-item6 img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    top: 0;
  }

.service-item1 p,
.service-item2 p,
.service-item3 p,
.service-item4 p,
.service-item5 p,
.service-item6 p {
    margin-top: 3rem;
    color: #f4f4f4;
    padding: 1rem;
}

.service-item1::before,
.service-item2::before,
.service-item3::before,
.service-item4::before,
.service-item5::before,
.service-item6::before {
    content: '';
    position: absolute;
    border-radius: 8px;
    top: 0;
    left: 0;
    width: 100%;
    height: 17%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1; /* Menjaga layer di bawah teks, di atas background */
}

.service-item1 .service-content,
.service-item2 .service-content,
.service-item3 .service-content,
.service-item4 .service-content,
.service-item5 .service-content,
.service-item6 .service-content {
    position: relative;
    z-index: 2; /* Memastikan teks berada di atas layer */
}

.service-item1:hover,
.service-item2:hover,
.service-item3:hover,
.service-item4:hover,
.service-item5:hover,
.service-item6:hover {
    color: #94C247;
    box-shadow: 0 0 30px #94C247;
}

@media (max-width: 768px) {
    .service-item1,
    .service-item2,
    .service-item3,
    .service-item4,
    .service-item5,
    .service-item6
     {
        width: 100%;
    }
}

/* Vision and Mission Section */
.section-vision-mission {
    padding: 50px 20px;
    background-color: #f4f4f4; /* Light grey background */
}

.section-vision-mission h2 {
    text-align: center;
    color: #41A3CD; /* primary color */
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-vision-mission p {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-top: 20px;
    padding: 0% 10%;
}

.mission-priorities {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0% 10%;
}

.mission-item {
    width: 28%;
    text-align: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

.mission-item h3 {
    font-size: 1.5rem;
    color: #41A3CD; /* primary color */
    margin-bottom: 15px;
}

.mission-item p {
    font-size: 1rem;
    color: #333;
}

.mission-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .mission-item {
        width: 100%;
    }
}

/* Team Section */
.section-team {
    padding: 50px 20px;
    background-color: #ffffff;
}

.section-team h2 {
    color: #41A3CD;
    text-align: center;
    font-size: 2.5rem;
}

.section-team p {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-top: 20px;
}

.team-members {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    margin: 0% 5%;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    width: 22%;
    margin-bottom: 30px;
}

.team-member img {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
    max-width: 100%;
    height: auto;
    position: center;
}

.team-member h3 {
    color: #94C247; /* secondary color for team member names */
    margin-bottom: 0;
    font-size: 0.95rem;
    text-align: center;
}

.team-member p {
    margin-top: 7px;
    color: #777;
    font-size: 0.9rem;
    text-align: center;
}


/* Style untuk footer */
footer {
    background-color: #181818;
    color: white;
    text-align: center;
    padding: 2rem 1rem; /* Menggunakan rem untuk ukuran yang lebih fleksibel */
}

footer p {
    color: #fff;
    font-weight: 600;
}

footer p:hover {
    color: #94C247; /* Change to secondary color on hover */
}

/* Kontainer footer */
footer .container {
    margin: 0 auto;
    padding: 0 1rem; /* Memberikan padding agar lebih responsif */
}

/* Mengatur layout dengan grid system */
footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* Kolom untuk perangkat besar dan menengah */
footer .col-md-3 {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 1rem; /* Padding yang responsif */
}

/* Kolom penuh untuk perangkat kecil */
footer .col-12 {
    max-width: 100%;
    padding: 0 1rem; /* Padding yang responsif */
}

footer h5 {
    font-size: 1.125rem; /* Gunakan rem untuk ukuran font yang lebih fleksibel */
    font-weight: bold;
    margin-bottom: 1.5rem; /* Menggunakan margin yang lebih fleksibel */
}

footer p {
    font-size: 1rem; /* Gunakan rem untuk ukuran font */
    color: #bdbdbd;
}

/* Styling untuk list sosial media */
footer .col-md-3 ul {
    list-style-type: none;
    padding: 0;
}

footer .col-md-3 ul li {
    margin-bottom: 1rem; /* Menambahkan margin bawah untuk jarak antar list */
}

footer .col-md-3 ul li a {
    text-decoration: none;
    color: #007bff;
    font-size: 1rem; /* Ukuran font responsif */
    transition: color 0.3s;
}

footer .col-md-3 ul li a:hover {
    color: #ffffff;
}

/* Styling untuk logo bawah */
footer img {
    width: 100%;
    max-width: 200px;
    height: auto;
    padding: 2rem 0;
    transition: opacity 0.3s ease-in-out;
}

/* Styling untuk hak cipta dan tautan legal */
footer .col-12.text-center p:last-child {
    font-size: 1rem;
    color: #bdbdbd;
}

/* Responsivitas: Mengubah layout pada perangkat lebih kecil */

/* Tablet (max-width 768px) */
@media (max-width: 768px) {
    footer .col-md-3 {
        flex: 0 0 48%;
        max-width: 48%;
        margin-bottom: 1.5rem; /* Menambahkan margin bawah pada kolom */
    }

    footer .col-md-3 ul li a {
        font-size: 1.1rem; /* Ukuran font sedikit lebih besar untuk tablet */
    }
}

/* Mobile (max-width 480px) */
@media (max-width: 480px) {
    footer .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem; /* Memberikan jarak antar kolom */
    }

    footer .col-md-3 ul li a {
        font-size: 1.2rem; /* Ukuran font lebih besar pada perangkat kecil */
    }

    footer h5 {
        font-size: 1rem;
    }

    footer p {
        font-size: 0.875rem;
    }
}

/* Sosial Media Section */
ul li a svg {
    transition: transform 0.3s, filter 0.3s;
}

ul li a:hover svg {
    transform: scale(1.1); /* Membesarkan ikon saat hover */
    filter: brightness(1.2); /* Menambahkan efek pencahayaan saat hover */
}
