html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Pastikan html dan body mengisi seluruh tinggi */
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.background-container {
    background: url('/assets/DJI_20250805181226_0036_D.JPG') no-repeat center center/cover;
    width: 100%;
    height: 100%; /* Mengisi seluruh tinggi */
    min-height: 100vh; /* Minimum tinggi layar */
    position: relative;
    display: block; /* Kembali ke default untuk menghindari flex issue */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
    height: 80px;
}

header.scrolled {
    background-color: #3c8775;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 10px 25px;
}

.logo {
    height: 55px;
    margin-right: 10px;
}

.text-container h1 {
    margin: 0;
    font-size: 1.05em;
    color: #ffffff;
    transition: color 0.3s ease;
}

.text-container p {
    margin: 0;
    font-size: 0.85em;
    color: #ffffff;
    transition: color 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    padding-right: 40px;
}

nav ul li {
    margin-left: 33px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.05em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

ul li.active a {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

header.scrolled .text-container h1,
header.scrolled .text-container p,
header.scrolled nav ul li a {
    color: #ffffff; /* Tetap putih saat discroll */
}

/* Sisanya dari CSS Anda tetap sama, hanya tambahkan di atas atau sesuaikan */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding-right: 10px;
    padding-left: 0px;
    z-index: 10;
    margin-left: auto;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
    height: 100%; /* Mengisi seluruh tinggi background-container */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    min-height: 100vh; /* Pastikan minimal tinggi layar */
    transform: translateY(0%); /* Menggeser ke atas sebesar 5% dari tinggi container */
    row-gap: 5px; /* Mengurangi jarak antar elemen flex menjadi 10px */
}

.hero h2 {
    font-size: 3.5em;
    margin: 0 0 5px 0; /* Mengurangi margin bawah menjadi 5px */
    text-shadow: 
        1.5px 0 0 #4c4c4c, 
        -1.5px 0 0 #4c4c4c, 
        0 1.5px 0 #4c4c4c, 
        0 -1.5px 0 #4c4c4c,
        1.5px 1.5px 0 #4c4c4c, 
        -1.5px -1.5px 0 #4c4c4c, 
        1.5px -1.5px 0 #4c4c4c, 
        -1.5px 1.5px 0 #4c4c4c,
        2px 2px 4px rgba(0,0,0,0.5); 
}

.hero h3 {
    font-size: 3.5em;
    margin: 0 0 0 0; /* Menghapus margin atas */
    text-shadow: 
        0.8px 0 0 #4c4c4c, 
        -0.8px 0 0 #4c4c4c, 
        0 0.8px 0 #4c4c4c, 
        0 -0.8px 0 #4c4c4c,
        0.8px 0.8px 0 #4c4c4c, 
        -1.5px -1.5px 0 #4c4c4c, 
        0.8px -0.8px 0 #4c4c4c, 
        -0.8px 0.8px 0 #4c4c4c,
        2px 2px 4px rgba(0,0,0,0.5); 
}

footer {
    background-color: #3c8775;
    color: white;
    padding: 20px;
    margin-top: auto; /* Dorong footer ke bawah */
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section h3 {
    margin: 0 0 10px;
    font-size: 1em;
}

.footer-section p {
    margin: 5px 0;
    font-size: 0.7em;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid #7ae2cf;
    padding-top: 10px;
}

.footer-bottom p {
    font-size: 0.95em;
}

.accessibility {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accessibility-icon {
    height: 20px;
}

/* Close Button for Menu */
.close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5em;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

nav ul.active .close-btn {
    display: block;
}

/* Add blur effect to the background when menu is active */
body.menu-open {
    overflow: hidden;
}

body.menu-open main,
body.menu-open footer {
    filter: blur(5px);
}

header {
    filter: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #0F7050;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #205723;
}

.scroll-to-top.show {
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 960px) {
    .hamburger {
        display: flex;
        margin-right: 10px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        width: 250px;
        height: 100vh;
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav ul.active {
        display: flex;
        transform: translateX(0);
        top: 80px; /* Adjusted to start below the header height */
        height: calc(100vh - 80px); /* Adjusted to account for header height */
        z-index: 1001;
    }

    nav ul li {
        margin: 15px 0;
        text-align: justify;
    }

    nav ul li a {
        font-size: 1.1em;
        padding: 10px;
        display: block;
        color: #000000; /* Mengubah warna teks menjadi hitam untuk kontras */
    }

    .hero {
        height: 600px;
    }

    .hero h2 {
        font-size: 3.5em;
    }

    .hero h3 {
        font-size: 2em;
    }

    header {
        background-color: #3c8775;
    }
}

@media screen and (max-width: 768px) {
    .logo {
        height: 50px;
    }

    .text-container h1 {
        font-size: 0.95em;
    }

    .text-container p {
        font-size: 0.75em;
    }

    .hero {
        height: 500px;
    }

    .hero h2 {
        font-size: 3em;
    }

    .hero h3 {
        font-size: 1.8em;
    }

    footer {
        padding: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-section h3 {
        font-size: 0.9em;
    }

    .footer-section p {
        font-size: 0.65em;
    }

    .footer-bottom p {
        font-size: 0.85em;
    }

    header {
        background-color: #3c8775;
    }
}

@media screen and (max-width: 580px) {
     .logo {
        height: 45px;
    }

    .text-container h1 {
        font-size: 0.9em;
    }

    .text-container p {
        font-size: 0.7em;
    }

    .hero {
        height: 400px;
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .hero h3 {
        font-size: 1.5em;
    }

    .footer-section h3 {
        font-size: 0.85em;
    }

    .footer-section p {
        font-size: 0.6em;
    }

    header {
        background-color: #3c8775;
    }
}

@media screen and (max-width: 525px) {
    .logo {
        height: 40px;
    }

    .text-container h1 {
        font-size: 0.85em;
    }

    .text-container p {
        font-size: 0.65em;
    }
    .hero {
        height: 350px;
    }

    .hero h2 {
        font-size: 2em;
    }

    .hero h3 {
        font-size: 1.3em;
    }

    .footer-section h3 {
        font-size: 0.8em;
    }

    .footer-section p {
        font-size: 0.55em;
    }

    .footer-bottom p {
        font-size: 0.75em;
    }
    header {
        background-color: #3c8775;
    }
}

/* New styles for the welcome section */
.welcome-section {
    background-color: #ffffff;
    padding: 20px;
    text-align: left;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 60px;
    margin-top: 60px;
}

.welcome-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.profile-card {
    display: flex;
    align-items: center;
}
.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-right: 20px;
    border: 5px solid #fff;
}

.profile-text {
    padding: 10px;
}

.profile-text h2 {
    margin: 0;
    font-size: 2em;
    color: #0F7050;
}
.profile-text p {
    margin: 5px 0;
    font-size: 1.05em;
    color: #000000;
    font-weight: 500;
    text-align: justify; /* Mengatur weight menjadi 500 untuk teks sambutan */
}

.profile-text .profile-name {
    font-size: 1.2em;
    font-weight: 500;
}

/* New styles for the video profile section */
.video-profile-section {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.video-profile-section h2 {
    margin: 0 0 20px 0;
    font-size: 2em;
    color: #0F7050;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-container iframe {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* New styles for the map section */
.map-section {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.map-section h2 {
    margin: 0 0 20px 0;
    font-size: 2em;
    color: #0F7050;
}

.map-section p {
    margin: 0 0 20px 0;
    font-size: 1.05em;
    color: #000000;
    font-weight: 500;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.map-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-iframe {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-in-out; /* Animasi transisi */
    transform-origin: center center; /* Titik pusat zoom */
    overflow: hidden; /* Pastikan konten tidak overflow */
}

/* Efek zoom-in saat iframe dimuat */
.map-iframe.loaded {
    transform: scale(1.2); /* Zoom-in sebesar 20% saat dimuat */
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.map-button {
    padding: 10px 20px;
    font-size: 1em;
    color: #ffffff;
    background-color: #0F7050;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.map-button:hover {
    background-color: #205723;
}

@media screen and (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .profile-text h2 {
        font-size: 1.5em;
    }
    .profile-text p {
        font-size: 1em;
        font-weight: 500; /* Tetap 500 di breakpoint ini */
    }

    .video-profile-section {
        padding: 10px;
    }

    .video-profile-section h2 {
        font-size: 1.5em;
    }

    .video-container {
        max-width: 100%;
    }

    .map-section {
        padding: 10px;
    }

    .map-section h2 {
        font-size: 1.5em;
    }

    .map-section p {
        font-size: 1em;
    }

    .map-container {
        max-width: 100%;
    }

    .map-iframe {
        height: 400px;
    }

    header {
        background-color: #3c8775;
    }
}

@media screen and (max-width: 525px) {
    .profile-img {
        width: 120px;
        height: 120px;
    }

    .profile-text h2 {
        font-size: 1.2em;
    }

    .profile-text p {
        font-size: 0.9em;
        font-weight: 500; /* Tetap 500 di breakpoint ini */
    }

    .video-profile-section h2 {
        font-size: 1.2em;
    }

    .map-section h2 {
        font-size: 1.2em;
    }

    .map-section p {
        font-size: 0.9em;
    }

    .map-iframe {
        height: 300px;
    }

    header {
        background-color: #3c8775;
    }
}

@media screen and (max-width: 430px) {
    .logo {
        height: 35px;
    }

    .text-container h1 {
        font-size: 0.8em;
    }

    .text-container p {
        font-size: 0.6em;
    }

    .hero {
        height: 300px;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero h3 {
        font-size: 1.1em;
    }

    .welcome-section {
        padding: 5px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .profile-img {
        width: 100px;
        height: 100px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .profile-text h2 {
        font-size: 1.1em;
    }

    .profile-text p {
        font-size: 0.85em;
    }

    .video-profile-section {
        padding: 5px;
    }

    .video-profile-section h2 {
        font-size: 1.1em;
    }

    .video-container iframe {
        height: 250px;
    }

    .map-section {
        padding: 5px;
    }

    .map-section h2 {
        font-size: 1.1em;
    }

    .map-section p {
        font-size: 0.85em;
    }

    .map-img {
        max-width: 100%;
    }

    .footer-section h3 {
        font-size: 0.75em;
    }

    .footer-section p {
        font-size: 0.5em;
    }

    .footer-bottom p {
        font-size: 0.7em;
    }

    header {
        background-color: #3c8775;
    }
}

@media screen and (max-width: 360px) {
    .logo {
        height: 30px;
    }

    .text-container h1 {
        font-size: 0.75em;
    }

    .text-container p {
        font-size: 0.5em;
    }

    .hero {
        height: 250px;
    }

    .hero h2 {
        font-size: 1.5em;
    }

    .hero h3 {
        font-size: 1em;
    }

    .welcome-section {
        padding: 5px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .profile-img {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .profile-text h2 {
        font-size: 1em;
    }

    .profile-text p {
        font-size: 0.8em;
    }

    .video-profile-section {
        padding: 5px;
    }

    .video-profile-section h2 {
        font-size: 1em;
    }

    .video-container iframe {
        height: 200px;
    }

    .map-section {
        padding: 5px;
    }

    .map-section h2 {
        font-size: 1em;
    }

    .map-section p {
        font-size: 0.8em;
    }

    .map-iframe {
        height: 250px;
    }

    .map-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .footer-section h3 {
        font-size: 0.7em;
    }

    .footer-section p {
        font-size: 0.45em;
    }

    .footer-bottom p {
        font-size: 0.65em;
    }

    header {
        background-color: #3c8775;
    }
}

body.menu-open {
    overflow: hidden;
}

body.menu-open main,
body.menu-open footer {
    filter: blur(5px);
}

header {
    filter: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #0F7050;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #205723;
}

.scroll-to-top.show {
    display: block;
}

nav ul.active li a {
    color: #000000 !important; /* Memastikan teks hitam saat menu aktif */
}

body.menu-open nav ul li a {
    color: #000000 !important; /* Pastikan teks tetap hitam saat menu terbuka */
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.map-button {
    padding: 10px 20px;
    font-size: 1em;
    color: #ffffff;
    background-color: #0F7050;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.map-button:hover {
    background-color: #205723;
}

/* Tambahkan gaya untuk zoom interaktif */
.map-iframe.zoomed-in {
    transform: scale(1.5); /* Zoom-in lebih besar saat tombol "Telusuri Peta" diklik */
}

.map-iframe.zoomed-out {
    transform: scale(1); /* Kembali ke ukuran normal saat "Lihat Semua" diklik */
}
