/* Pengaturan Dasar dan Font */
:root {
    --primary-color: #1B5E20; /* Hijau Tua */
    --secondary-color: #2E7D32; /* Hijau Sedang */
    --accent-color: #FFC107; /* Kuning untuk Aksen */
    --text-color: #333333; /* Abu-abu Tua untuk Teks */
    --light-gray: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* Header dan Navigasi */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    margin-left: 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* Bagian Konten Umum */
.content-section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.content-section.visible, .content-section-alt.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section-alt {
    padding: 80px 0;
    background-color: var(--light-gray);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #f5f5f5;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide:nth-child(1) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/slide1.webp');
}

.slide:nth-child(2) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/slide2.webp');
}

.slide:nth-child(3) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/slide3.webp');
}

.slide:nth-child(4) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/slide4.webp');
}

.slide.active {
    opacity: 1;
}

.slide-content {
    color: white;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--accent-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--primary-color);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Visi & Misi */
.visi-misi-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

/* Lightbox Gambar */
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 2000;
}
.image-lightbox-overlay.active {
    display: flex;
}
.image-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.image-lightbox-close,
.image-lightbox-prev,
.image-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.image-lightbox-close:hover,
.image-lightbox-prev:hover,
.image-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}
.image-lightbox-close {
    top: 24px;
    right: 24px;
}
.image-lightbox-prev,
.image-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}
.image-lightbox-prev {
    left: 24px;
}
.image-lightbox-next {
    right: 24px;
}
.image-lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: #f8f8f8;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 768px) {
    .image-lightbox-prev,
    .image-lightbox-next {
        width: 36px;
        height: 36px;
    }
    .image-lightbox-close {
        width: 36px;
        height: 36px;
        top: 16px;
        right: 16px;
    }
    .image-lightbox-counter {
        font-size: 0.85rem;
        bottom: 14px;
    }
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex: 1;
    text-align: center;
}
.card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Galeri Proyek */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: scale(1.05);
}

.project-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-caption {
    padding: 18px 16px;
    color: var(--text-color);
    background: var(--white);
    font-weight: 600;
    line-height: 1.4;
}

.project-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 20px 15px 15px;
    font-weight: 600;
}

.project-images {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 30px;
    grid-auto-rows: 240px;
    align-items: stretch;
}

.project-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Kontak */
.contact-container {
    display: flex;
    gap: 30px;
}

.contact-info, .contact-map {
    flex: 1;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-map iframe {
    border-radius: 8px;
}

/* Profile Section */
.profile-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.profile-content h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.profile-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.download-link {
    display: inline-block;
    margin: 20px 0 0;
    padding: 14px 26px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(27, 94, 32, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.download-link:hover,
.download-link:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(27, 94, 32, 0.32);
    opacity: 0.95;
}

.download-link:focus {
    outline: 3px solid rgba(255, 193, 7, 0.35);
    outline-offset: 4px;
}

.business-list {
    margin: 15px 0 25px 30px;
    list-style-type: disc;
}

.business-list li {
    margin-bottom: 8px;
    font-weight: 500;
}

.documents-section {
    margin-top: 40px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.documents-list {
    margin-top: 15px;
    list-style-type: none;
    column-count: 1;
}

.documents-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    break-inside: avoid;
}

.documents-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Section-specific gradations and accessories */
#profile {
    background: linear-gradient(135deg, rgba(27,94,32,0.12), rgba(255,255,255,0.98));
}

#profile .container {
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    padding: 45px 40px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
}

#video {
    background: linear-gradient(135deg, rgba(255,193,7,0.14), rgba(255,255,255,1));
}

#video .container {
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    padding: 45px 40px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.08);
}

#project {
    background: linear-gradient(135deg, rgba(5,57,102,0.08), rgba(245,247,250,1));
}

#project .project-item {
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
}

#partner {
    background: linear-gradient(135deg, rgba(27,94,32,0.08), rgba(255,255,255,1));
}

#partner .partner-item {
    background: rgba(255,255,255,0.92);
}

#contact {
    background: linear-gradient(135deg, rgba(255,193,7,0.12), rgba(255,255,255,1));
}

#contact .contact-container {
    background: rgba(255,255,255,0.94);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.08);
}

/* Partner Section */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 30px;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.partner-item img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .documents-list {
        column-count: 2;
        column-gap: 30px;
    }
}

@media (max-width: 1024px) {
    .partner-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .navbar {
        padding: 0.9rem 1rem;
    }

    .nav-logo {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .logo-img {
        height: 36px;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        height: calc(100vh - 60px);
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        padding-top: 1rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0.9rem 0;
    }

    .nav-link {
        display: block;
        padding: 0.9rem 1rem;
        font-size: 1.05rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1100;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 1.2rem; }
    .slider-btn { padding: 10px; font-size: 18px; }

    .visi-misi-container {
        flex-direction: column;
    }

    .video-container {
        margin: 0 10px;
    }