:root {
    --primary-color: #2E8B57;
    --secondary-color: #4682B4;
    --accent-color: #FFD700;
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #f9fbfd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* NAVIGATION */
nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--secondary-color); }

.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* HERO SECTION */
#home {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/sendang8.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

#home h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#home p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- SECTIONS GENERAL --- */
section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title span {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* --- ABOUT & HISTORY --- */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-img {
    flex: 1 1 400px;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-text {
    flex: 1 1 400px;
}

.about-text h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* --- FACILITIES --- */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.facility-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.facility-card:hover {
    transform: translateY(-10px);
}

.facility-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- LOCATION / CONTACT --- */
#location {
    background: var(--bg-light);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.map-box {
    flex: 2 1 400px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-box {
    flex: 1 1 300px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

/* --- FOOTER --- */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        width: 60%;
        padding-top: 5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .hamburger { display: block; z-index: 1001; }
    
    #home h1 { font-size: 2.5rem; }
}